home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilstem
/
ubelt
/
beltdemo.bat
< prev
next >
Wrap
DOS Batch File
|
1991-11-06
|
8KB
|
338 lines
@echo off
rem =========================================
rem = This is a demo of the Utility_Belt
rem = collection of the .BAT file enhancers
rem = from Herne Data Systems Ltd.
rem = PO Box 250, Tiverton, ON N0G 2T0
rem = all programs are Copyright (c) 1990-91
rem =========================================
vpstripe 0 v
vpbox 0 0 0 0 6 18 21 61
vpbox 0 1 7 2 5 17 20 60
vpat 0 1 7 8 25 Welcome to the Utility_Belt Demo
vpat 0 1 7 10 32 Brought to you by
vpat 0 1 7 12 29 Herne Data Systems Ltd.
vpat 0 1 7 14 25 PO Box 250, Tiverton, ON N0G 2T0
vpbox 0 0 0 0 20 23 5 75
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 Note:
vpat 0 4 14 23 14 This screen was created with VPSTRIPE, VPBOX, and VPAT
vpcls 1
vpcls 2
vpcls 3
sleep /c3
vptnt 1 7
:vpboxdemo
vpset 1
vpcls 1 2 7
vpbox 1 0 7 1 1 3 50 70
vpat 1 0 7 2 55 VPBOX Demo
vpbox 1 1 15 9 2 7 4 30
vpat 1 1 15 4 8 This screen shows a
vpbox 1 3 0 11 6 10 15 50
vpat 1 3 0 8 20 number of windows created
vpbox 1 4 14 6 15 19 30 70
vpat 1 4 14 17 40 with the VPBOX command.
sleep /c2
vpbox 1 7 1 4 12 19 2 27
vpat 1 7 1 14 4 There are 26 styles
vpat 1 7 1 16 4 of borders to choose
vpat 1 7 1 18 4 from!!
sleep /c1
vpbox 1 6 15 5 11 14 51 78
vpat 1 6 15 12 53 The text is added with
vpat 1 6 15 13 53 the VPAT command.
sleep /c1
vpbox 1 0 0 0 20 22 6 50
vpbox 1 5 7 18 21 23 7 51
vpat 1 5 7 22 15 Press any key to continue ...
getkey a
vpbh 1 7 s
:vpstripedemo
vpstripe 0 h
vpset 0
vpbox 0 0 7 1 1 3 50 70
vpat 0 0 7 2 55 VPSTRIPE Demo
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 This is VPSTRIPE in horizontal rainbow mode.
vpat 0 4 14 23 14 Other modes are available. Press a key to see...
getkey a
vpstripe 0 v 1 13
vpbox 0 0 7 1 1 3 50 70
vpat 0 0 7 2 55 VPSTRIPE Demo
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 This is VPSTRIPE in vertical two color mode.
vpat 0 4 14 23 14 Press a key to continue ...
getkey a
:vpbhdemo
vpbh 2 7 s
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 The screen clearing special effects are provided by
vpat 0 4 14 23 14 VPTNT (explosion) and VPBH (black hole)
sleep /c2
vpbox 0 7 1 4 12 18 2 27
vpat 0 7 1 14 4 The time delays are
vpat 0 7 1 16 4 provided by SLEEP
sleep /c1
vpbox 0 6 15 5 10 15 51 78
vpat 0 6 15 12 53 The keyboard input
vpat 0 6 15 13 53 is by GETKEY
sleep /c1
vpbox 0 1 7 19 1 7 1 30
vpat 0 1 7 3 5 Sound effects by
vpat 0 1 7 5 5 BLEEP
bleep 1 349 2 1;1 392;1 440;1 523 2 4;1 523 4 1;1 587 2;1 523;1 440 2 4;1 349 4 1;1 392 2;2 440;1 392;1 349 2 2;1 392 8 1;
vpbox 0 0 13 3 3 8 40 70
vpat 0 0 13 5 45 Press any key
vpat 0 0 13 6 45 to continue . . .
getkey a
vpcls 2 4 14
vpbox 2 0 13 1 21 24 6 76
vpat 2 0 13 22 8 The menu display on this screen was created with the command:
vpat 2 0 13 23 8 SELECT Demo Items; VPSTRIPE; VPTNT; VPFLIP; VPCOPY; VPSET; VPBOX
:selectdemo
vpbox 2 0 7 1 0 2 50 70
vpat 2 0 7 1 55 SELECT Demo
vpset 2 3
select Demo Items; VPSTRIPE; VPTNT; VPFLIP; VPCOPY; VPSET; VPBOX
if errorlevel 6 goto item6
if errorlevel 5 goto item5
if errorlevel 4 goto item4
if errorlevel 3 goto item3
if errorlevel 2 goto item2
if errorlevel 1 goto item1
vpbh 0 13
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'Esc' key
sleep /c2
goto contdemo
:item1
vpstripe 2 v 1 4
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'A' key
vpbox 2 4 14 1 21 24 6 76
vpat 2 4 14 22 14 These stripes are created with the command:
vpat 2 4 14 23 14 VPSTRIPE 2 V 1 4
sleep /c2
goto moredemo
:item2
vptnt 1 7
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'B' key
vpbox 2 4 14 1 21 24 6 76
vpat 2 4 14 22 14 The explosion was created with the command:
vpat 2 4 14 23 14 VPTNT 1 7
sleep /c2
goto moredemo
:item3
vptnt 1 7
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'C' key
vpbox 2 2 14 1 21 24 6 76
vpat 2 2 14 22 8 Excuse me while I setup the video pages for the
vpat 2 2 14 23 8 video page flipping demo.
vpstripe 0 h
vpbox 0 0 0 0 6 10 21 61
vpbox 0 1 7 2 5 9 20 60
vpat 0 1 7 7 25 This is video page 0
vpat 0 0 15 20 20 It is the normal DOS default page.
vpcls 1 2 13
vpbox 1 0 0 0 6 10 21 61
vpbox 1 1 7 2 5 9 20 60
vpat 1 1 7 7 25 This is video page 1
vpat 1 2 15 15 10 You may want to display a help message on this page
vpcls 3 4 7
vpbox 3 0 0 0 6 10 21 61
vpbox 3 1 7 2 5 9 20 60
vpat 3 1 7 7 25 This is video page 3
vpat 3 4 7 13 5 You can flip between pages instantly. In any order you choose!
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 This is video page 2
vpat 2 1 7 19 20 Each page can hold different text.
vpflip 2 3 0 1
goto moredemo
:item4
vpcls 2 1 7
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'D' key
vpbox 2 4 14 1 21 24 6 76
vpat 2 4 14 22 14 The VPCOPY command lets you SAVE and recall entire screens.
vpat 2 4 14 23 14 With VPCOPY 2 0, this page is being copied to page 0 ...
vpcopy 2 0
sleep /c2
vpset 0
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 You are now on page 0. If we go to page 1, we
vpat 0 4 14 23 14 can watch the copying take place with VPCOPY 2 1
sleep /c2
vpstripe 1 h
vpset 1
vpcopy 2 1
vpbox 1 4 14 1 21 24 6 76
vpat 1 4 14 22 14 Neat, eh?
vpat 1 4 14 23 14 Press any key to get back to page 2 ...
getkey a
vpset 2
goto moredemo
:item5
vptnt 1 7
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'E' key
vpbox 2 4 14 1 21 24 6 76
vpat 2 4 14 22 14 You are now in video page 2. With the command VPSET 0,
vpat 2 4 14 23 14 you will be sent to video page 0.
sleep /c2
vpset 0
vpbh 2 0
vpbox 0 4 14 1 21 24 6 76
vpat 0 4 14 22 14 Hi there, you are now in video page 0.
vpat 0 4 14 23 14 Press any key to get back to page 2 ...
getkey a
vpset 2 23
sleep /c2
goto moredemo
:item6
vptnt 1 7
vpbox 2 0 0 0 6 10 21 61
vpbox 2 1 7 2 5 9 20 60
vpat 2 1 7 7 25 You pressed the 'F' key
vpat 2 1 7 15 20 Of course, this box was created with VPBOX
sleep /c2
:moredemo
vpcls 2 4 14
vpbox 2 2 14 1 21 24 6 76
vpat 2 2 14 22 8 Try some of the other menu items.
vpat 2 2 14 23 8 Then press 'Esc' to continue with the demo.
goto selectdemo
:contdemo
vptnt 3 14
vpbox 2 0 0 0 6 11 21 61
vpbox 2 1 7 2 5 10 20 60
vpat 2 1 7 7 32 Now for something
vpat 2 1 7 8 30 completely different.
sleep /c1
:secure
vpcls 0 1 7
vpset 0
vpat 0 1 7 1 5 We will try some of the security utilities ...
vpat 0 1 7 23 5 (Press 'Esc' to end the demo)
vpset 0 5
select Security Program;HANG;REBOOT;WHATIS
if errorlevel 3 goto whatis
if errorlevel 2 goto reboot
if errorlevel 1 goto hang
goto exit
:reboot
vptnt 4 7
vpbox 0 0 0 0 4 9 21 61
vpbox 0 1 7 2 3 8 20 60
vpat 0 1 7 5 25 REBOOT will reset your
vpat 0 1 7 6 25 computer...
vpset 0 11
confirm Reboot the computer
if errorlevel 1 goto secure
vpcls 0 4 7
vpset 0 5
reboot OK, here goes ...
:hang
vptnt 3 0
vpbox 0 0 0 0 4 9 21 61
vpbox 0 1 7 2 3 8 20 60
vpat 0 1 7 5 25 HANG will lockup your
vpat 0 1 7 6 25 computer completely...
vpset 0 11
confirm Lockup the computer
if errorlevel 1 goto secure
vpcls 0 4 7
vpat 0 1 7 23 10 (I turned off the alarm for you first)
vpset 0 5
hang /q You will have to do a hard boot now ...
:whatis
vptnt 2 7
vpbox 0 0 0 0 6 11 21 61
vpbox 0 1 7 2 5 10 20 60
vpat 0 1 7 7 25 WHATIS tells you about
vpat 0 1 7 8 25 your disk drives...
sleep /c2
whatis a
vpat 0 0 7 23 5 (Press any key to continue...)
getkey a
goto secure
rem === exit back to dos
:exit
vpcls 0
vpset 0
vptnt 4 14
vpbox 0 0 0 0 6 17 21 61
vpbox 0 3 15 2 5 16 20 60
vpat 0 3 15 8 25 ╥ ┬
vpat 0 3 15 9 25 ║ │
vpat 0 3 15 10 25 ╠══╡ ╔═╕ ╔═╕ ╔═╕ ╔═╕ Data
vpat 0 3 15 11 25 ║ │ ╟─┘ ║ ║ │ ╟─┘ Systems
vpat 0 3 15 12 25 ╨ ┴ ╚═╛ ╨ ╨ ┴ ╚═╛ Ltd.
vpat 0 3 15 13 25 Software worth hunting for!!
vpbox 0 0 0 0 20 23 12 72
vpbox 0 1 7 2 19 22 11 71
vpat 0 1 7 20 20 Thank you for trying the Utility_Belt Demo
vpat 0 1 7 21 25 from Herne Data Systems Ltd
sleep /c4
vpcls 0
asp